package com.zx.mes.hyl.base.collections;

import java.util.Comparator;

public class AgetComparator implements Comparator<Person>{
    @Override
    public int compare(Person o1, Person o2) {
        if (o1 == null) {
            return -1;
        }else {
            return o1.getAge() - o2.getAge();
        }

    }
}
